import Index from '../pages/admin/dashboard/Home'
import User from '../pages/admin/User'
import Article from '../pages/admin/Article'
import PageNotFound from '../pages/PageNotFound'
import { TeamOutlined,ProjectOutlined,ReadOutlined,ProfileOutlined,PictureOutlined,MessageOutlined,CommentOutlined} from '@ant-design/icons';
import Txt from '../pages/admin/Txt';
import Img from '../pages/admin/Img';
import Feedback from '../pages/admin/Feedback';
import Login from '../pages/Login';
import Edit from '../pages/admin/Edit';
import Comment from '../pages/admin/Comment';

export const mainRoutes = [
    {
        path:"/",
        component:Login
    },
    {
        path:"/404",
        component:PageNotFound
    }
]

export const adminRoutes = [
    {
        path:'/admin/dashboard',
        component:Index,
        isShow:true,
        title:'看板',
        icon:<ProjectOutlined />
    },
    {
        path:'/admin/user',
        component:User,
        exact:true,
        isShow:true,
        title:"用户管理",
        icon:<TeamOutlined />
    },
    {
        path:'/admin/txt/edit/:id?',
        component:Edit,
        isShow:false,
    },
    {
        path:'/admin/article',
        component:Article,
        exact:true,
        isShow:true,
        title:"作品管理",
        icon:<ReadOutlined />
    },
    {
        path:'/admin/comment',
        component:Comment,
        exact:true,
        isShow:true,
        title:"评论管理",
        icon:<CommentOutlined />
    },
    {
        path:'/admin/txt',
        component:Txt,
        exact:true,
        isShow:true,
        title:"文字素材管理",
        icon:<ProfileOutlined />
    },
    {
        path:'/admin/img',
        component:Img,
        exact:true,
        isShow:true,
        title:"图片素材管理",
        icon:<PictureOutlined />
    },
    {
        path:'/admin/feedback',
        component:Feedback,
        exact:true,
        isShow:true,
        title:"反馈管理",
        icon:<MessageOutlined />
    }
]